package com.treeroot.linkedlist;


public class HeroNode {
    /**
     * data 域
     */
    public int no;
    public String name;
    public String NickName;
    /**
     * next 域，指向下一个节点
     * 表示后面还有没有对象了
     */
    public HeroNode next;

    /**
     * data 域构造器
     */
    public HeroNode(int no, String name, String nickName) {
        this.no = no;
        this.name = name;
        NickName = nickName;
    }

    @Override
    public String toString() {
        return "SingleLinkedList{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", NickName='" + NickName + '\'' +
                '}';
    }
}
